package pl.edu.agh.mguesser.ui.swing;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;

public class ImagePanel extends JPanel {

    private BufferedImage image;

    public ImagePanel(BufferedImage image) {
       this.image = image;
    }

    @Override
    public void paintComponent(Graphics graphics) {
        graphics.drawImage(image, 0, 0, null);
    }

}